unsigned int is_drag_surface : 1;
GdkSurfaceTypeHint hint;
GdkSurface *transient_for;
- GdkSurface *popup_parent;
int pending_buffer_offset_x;
int pending_buffer_offset_y;
impl = GDK_WAYLAND_SURFACE (surface);
- g_clear_object (&impl->popup_parent);
-
if (impl->event_queue)
{
GdkWaylandDisplay *display_wayland =
freeze_popup_toplevel_state (surface);
}
- g_set_object (&impl->popup_parent, parent);
display->current_popups = g_list_append (display->current_popups, surface);
if (grab_input_seat)
{
for (l = display_wayland->current_popups; l; l = l->next)
{
GdkSurface *popup = l->data;
- GdkWaylandSurface *popup_impl = GDK_WAYLAND_SURFACE (popup);
- if (popup_impl->popup_parent == surface)
+ if (popup->parent == surface)
{
g_warning ("Tried to unmap the parent of a popup");
gdk_surface_hide (popup);